﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navigation;
using Microsoft.Practices.Unity;
using Arch.Samples.Model;
using Arch.Samples.RiaServices.Controls;
using Arch.Samples.RiaServices.ViewModels;

namespace Arch.Samples.RiaServices.Views.Todos
{
    public partial class TodoList : Page
    {
        [Dependency]
        public TodoListViewModel ViewModel {
            get { return DataContext as TodoListViewModel; }
            set { DataContext = value; }
        }

        public TodoList()
        {
            InitializeComponent();

            //TODO: inject with IoC
            //var vm = new TodoListViewModel();
            //LayoutRoot.DataContext = DataContext = vm;

            //DataGrid 
        }

        // Executes when the user navigates to this page.
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
        }
    }
}
